package com.yanqu.road.server.cmd.activity.zhenhuan.secondProcess.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ZhenHuanProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.zhenhuan.ZhenHuanSecondProcessModule;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_ZHENHUAN_SECOND_PROCESS_OPEN_PARTY_CROSS_BACK, desc = "甄嬛第二阶段开启茶话会返回")
public class ZhenHuanSecondProcessOpenPartyFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        ZhenHuanProto.ZhenHuanSecondProcessOpenPartyRespMsg respMsg = ZhenHuanProto.ZhenHuanSecondProcessOpenPartyRespMsg.parseFrom(packet.getBytes());
        player.getModule(ZhenHuanSecondProcessModule.class).openPartyBack(respMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
